import request from "@/utils/request";
import { encryptedData } from "@/utils/encrypt";
import { loginRSA, tokenName } from "@/config";

/**
 * 操作日志列表
 * @param {*} data
 * @returns
 */
export function API_logRecordList(params) {
  return request({
    url: "/logRecord/list",
    method: "get",
    params,
  });
}

/**
 * 操作日志新增
 * @returns
 */
export function API_logRecordCreate(data) {
  return request({
    url: "/logRecord/create",
    method: "post",
    data,
  });
}

/**
 * 操作日志修改
 * @returns
 */
export function API_logRecordEdit(data) {
  return request({
    url: "/logRecord/edit",
    method: "put",
    data,
  });
}

/**
 * 操作日志删除
 * @returns
 */
export function API_logRecordDelete() {
  return request({
    url: "/logRecord/delete",
    method: "delete",
    data,
  });
}

/**
 * 操作日志记录
 * @returns
 */
export function API_logRecordGet(params) {
  return request({
    url: "/logRecord/get",
    method: "get",
    params,
  });
}
